package pack1;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;

	public class sprg11 {
    public static void main(String[] args) throws InterruptedException {

	WebDriver driver= new FirefoxDriver();
	driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
	driver.get("file:///C:/Users/anand/Desktop/tst.html");
	WebElement cSelect=driver.findElement(By.name("tech"));
	Select select= new Select(cSelect);
//	select.deselectAll();
	
	select.selectByVisibleText("c++");
	//Thread.sleep(3000);
	select.selectByIndex(1);
	//Thread.sleep(3000);
	select.selectByIndex(4);
	
	
}
}
